#!/bin/bash

which qmake 2>/dev/null
if [ $? -eq 0 ]
then 
	echo "Checking for qmake... [Yes]"
	qmake=`which qmake`
else 
	which qmake-qt4 2>/dev/null
	if [ $? -eq 0 ]
	then
		echo "Checking for qmake...     [No ]"
		echo "Checking for qmake-qt4... [Yes]"
		qmake=`which qmake-qt4`
	else
		echo "Cannot build Quikman on the system without qt4.5"
		exit 1
	fi	

fi
echo "Running... $qmake -project"
$qmake -project
echo "Running... $qmake"
$qmake

exit 0
